/*
 * @Author: yumao 123456
 * @Date: 2025-09-18 14:43:11
 * @LastEditors: yumao 123456
 * @LastEditTime: 2025-09-18 16:54:16
 * @FilePath: \龙飞1\src\api\alarmEvent.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

const heimdallrApi = {
  AlarmEventPage: '/heimdallrApi/alarmEvent/page',
  RelationWorkflow: '/heimdallrApi/relation/workflow',
  RelationNodeConfig: '/heimdallrApi/relation/nodeConfig',
  AlarmEventGet: '/heimdallrApi/alarmEvent/get',
  AlarmEventHangUp: '/heimdallrApi/alarmEvent/hangUp',
  AlarmEventProcess: '/heimdallrApi/alarmEvent/process',
}
export function alarmEventPage(parameter) {
  return request({
    url: heimdallrApi.AlarmEventPage,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function relationWorkflow(parameter) {
  return request({
    url: heimdallrApi.RelationWorkflow,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function relationNodeConfig(parameter) {
  return request({
    url: heimdallrApi.RelationNodeConfig,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function alarmEventGet(parameter) {
  return request({
    url: heimdallrApi.AlarmEventGet,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function alarmEventHangUp(parameter) {
  return request({
    url: heimdallrApi.AlarmEventHangUp,
    method: 'post',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
export function alarmEventProcess(parameter) {
  return request({
    url: heimdallrApi.AlarmEventProcess,
    method: 'post',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}
